package org.example.forum.model;

import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

@Data
@Slf4j
public class Article {
    @Parameter(ref = "是否作者")
    private Boolean own;

    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    //访问次数
    private Integer visitCount;

    //回复次数
    private Integer replyCount;

    //点赞次数
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    //关联对象—作者
    private User user;
    //关联对象—板块
    private Board board;

}